<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Workflow extends CI_Controller {

	
	function gethtml(){
		$wfid=$this->input->post("wfid",TRUE);
		
		$this->load->model('workflowmodel','workflow');
		$dataobj=$this->workflow->getworkflowarray($wfid);
		
		foreach($dataobj['service_array'] as $service){
		
			$this->workflow->fetchhtmlfromservice($service['descr']);
		}
	}
	
	
	function test(){
		
		echo "<fieldset id='total' class='step'>";
		echo "<b>TOTAL</b><hr>";
// 		echo '<label for="firstname">First name</label><br />';
// 		echo '<input class="input_field_12em" name="firstname" id="firstname" /><br />';
// 		echo '<label for="surname">Surname</label><br />';
// 		echo '<input class="input_field_12em" name="surname" id="surname" /><br />';
		echo "</fieldset>";
		
		echo '				<fieldset id="oakland" class="step">';
		echo '					<h1>Step 2 - Personal information</h1><br />';
		echo '					<label for="day_fi">Social Security Number</label><br />';
		echo '';
// 		echo '					<input class="input_field_25em" name="day" id="day_fi" value="DD" />';
// 		echo '					<input class="input_field_25em" name="month" id="month_fi" value="MM" />';
// 		echo '					<input class="input_field_3em" name="year" id="year_fi" value="YYYY" /> - ';
// 		echo '					<input class="input_field_3em" name="lastFour" id="lastFour_fi" value="XXXX" /><br />';
// 		echo '					<label for="countryPrefix_fi">Phone number</label><br />';
// 		echo '					<input class="input_field_35em" name="countryPrefix" id="countryPrefix_fi" value="+358" /> - ';
// 		echo '					<input class="input_field_3em" name="areaCode" id="areaCode_fi" /> - ';
// 		echo '					<input class="input_field_12em" name="phoneNumber" id="phoneNumber_fi" /><br />';
// 		echo '';
// 		echo '					<label for="myemail">*Email</label><br />';
// 		echo '					<input class="input_field_12em email required" name="myemail" id="myemail" /><br />	 						';
		echo '				</fieldset>';
	}
	
}